<div [@routerTransition]>
  <div class="m-subheader ">
    <div class="d-flex align-items-center">
      <div class="mr-auto">
        <h3 class="m-subheader__title"><span>成本管理</span></h3>
      </div>
    </div>
  </div>

  <div class="m-content">
    <div class="m-portlet m-portlet--mobile">
      <div class="m-portlet__head">
        <div class="m-portlet__head-caption">
          <div class="m-portlet__head-title"><h3 class="m-portlet__head-text">选择时间段导出成本记录</h3></div>
        </div>
      </div>
      <div class="m-portlet__body">
        <div class="row">
          <div class="form-group">
            <label for="StartEndRange" class="control-label">{{ l('DateRange') }}</label>
            <date-range-picker id="StartEndRange" [(startDate)]="startDate" [(endDate)]="endDate"></date-range-picker>
          </div>
        </div>
        <div class="row">
          <button (click)="exportToExcel(0)" class="btn btn-primary blue" [buttonBusy]="saving">
            <i class="fa fa-file-excel-o"></i>导出成本
          </button>
          <button (click)="exportToExcel(1)" class="btn btn-primary blue" [buttonBusy]="saving">
            <i class="fa fa-file-excel-o"></i>导出入库成本
          </button>
          <button (click)="exportToExcel(2)" class="btn btn-primary blue" [buttonBusy]="saving">
            <i class="fa fa-file-excel-o"></i>导出出库成本
          </button>
          <button (click)="exportToExcel(3)" class="btn btn-primary blue" [buttonBusy]="saving">
            <i class="fa fa-file-excel-o"></i>导出退库成本
          </button>
          <button (click)="exportToExcel(4)" class="btn btn-primary blue" [buttonBusy]="saving">
            <i class="fa fa-file-excel-o"></i>导出返回物流成本
          </button>

          <button (click)="exportToExcel(5)" class="btn btn-primary blue" [buttonBusy]="saving">
            <i class="fa fa-file-excel-o"></i>导出调整库存增成本
          </button>
          <button (click)="exportToExcel(6)" class="btn btn-primary blue" [buttonBusy]="saving">
            <i class="fa fa-file-excel-o"></i>导出调整库存减成本
          </button>
        </div>
      </div>
    </div>
  </div>
</div>
